<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<hr>
<form method="post" action="servlet5">
    <input type="text" name="username"> <br>
    <input type="password" name="userPwd"> <br>
    爱好:
    <input type="checkbox" name="body" value="1"> 篮球
    <input type="checkbox" name="body" value="2"> 足球
    <input type="checkbox" name="body" value="3"> 排球
    <input type="checkbox" name="body" value="4"> 铅球 <br>
    <input type="submit">
</form>
</body>
</html>